<%@page import="bean.FmMemberDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script src = './js/member.js'></script>

</head>
<body>
	<jsp:useBean id="vo" class ="bean.FmMemberVO" scope = "page"/>
	<jsp:setProperty property="*" name="vo"/>

	<%
		FmMemberDTO dto = new FmMemberDTO();
		dto.setVo(vo);
		boolean b = dto.overlap();
		
		
		if(b){
			vo.setOverlap("이미 가입된 아이디입니다.");			
		}else{
			if(vo.getMid().equals("")){
				vo.setOverlap("아이디 입력 후 확인해주세요.");
			}else{
				vo.setOverlap("사용 가능한 아이디입니다.");
			}
		}
	%>
	

	<form name = 'overlapFrm' method = 'post'>
		<input type = 'hidden' name = 'mid' value = '<%=vo.getMid()%>'/>
		<input type = 'hidden' name = 'pwd' value = '<%=vo.getPwd()%>'/>
		<input type = 'hidden' name = 'pwd2' value = '<%=vo.getPwd2()%>'/>
		<input type = 'hidden' name = 'irum' value = '<%=vo.getIrum()%>'/>
		<input type = 'hidden' name = 'email' value = '<%=vo.getEmail()%>'/>
		<input type = 'hidden' name = 'pn1' value = '<%=vo.getPn1()%>'/>
		<input type = 'hidden' name = 'pn2' value = '<%=vo.getPn2()%>'/>
		<input type = 'hidden' name = 'pn3' value = '<%=vo.getPn3()%>'/>
		<input type = 'hidden' name = 'address' value = '<%=vo.getAddress()%>'/>
		<input type = 'hidden' name = 'question' value = '<%=vo.getQuestion()%>'/>
		<input type = 'hidden' name = 'answer' value = '<%=vo.getAnswer()%>'/>
		<input type = 'hidden' name = 'overlap' value = '<%=vo.getOverlap()%>'/>
	</form>
	
	

</body>
<script type="text/javascript">overlapInit();</script>
</html>